﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.Framework.UI.Common;

namespace PSE.Framework.UI.Controls.SmartClient
{
    internal class ContentWidthRequestedEventManager : BaseWeakEventManager<ContentWidthRequestedEventManager, Column, ContentWidthRequestedEventArgs>
    {
        protected override void StartListening(object source)
        {
            Column s = source as Column;
            if (s != null)
                s.ContentWidthRequested += new EventHandler<ContentWidthRequestedEventArgs>(HandleEvent);
        }

        protected override void StopListening(object source)
        {
            Column s = source as Column;
            if (s != null)
                s.ContentWidthRequested -= new EventHandler<ContentWidthRequestedEventArgs>(HandleEvent);
        }
    }
}
